  /**
   * Generate time : 2013-06-26 6:26:50
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cs.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCSMiningarea 
 * table comment : 采区信息 
 */
public class ZMCSMiningarea extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdParentId = " ";		/* 父节点ID*/
	private String fdNo = " ";		/* 采区编号*/
	private String fdName = " ";		/* 采区名称*/
	private Double fdTrendLength = new Double(0);		/* 走向长度*/
	private Double fdTendencyLength = new Double(0);		/* 倾向长度*/
	private Double fdDesignReserves = new Double(0);		/* 设计储量*/
	private Double fdRecoverableReserves = new Double(0);		/* 可采储量*/
	private Double fdManufacturability = new Double(0);		/* 设计生产能力*/
	private Float fdServiceYear = new Float(0);	/* 服务年限*/	
	private Integer fdUpperElevation = new Integer(0);		/* 上限标高*/
	private Integer fdLowerElevation = new Integer(0);		/* 下限标高*/
	private String fdIsStratified = " ";		/* 是否分层*/
	private String fdIsWings = " ";		/* 是否两翼开采*/
	private String fdRemarks = " ";		/* 备注*/
	private String fdIsFirst = " ";		/* 是否为首采区*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdParentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("父节点ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdNo");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("采区编号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdName");
	eiColumn.setFieldLength(60);	
	eiColumn.setDescName("采区名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdTrendLength");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("走向长度");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdTendencyLength");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("倾向长度");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDesignReserves");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("设计储量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRecoverableReserves");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("可采储量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdManufacturability");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("设计生产能力");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdServiceYear");
	eiColumn.setType("N");
	eiColumn.setScaleLength(1);
	eiColumn.setFieldLength(4);
	eiColumn.setDescName("服务年限");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdUpperElevation");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("上限标高");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdLowerElevation");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("下限标高");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdIsStratified");
	eiColumn.setFieldLength(2);	
	eiColumn.setDescName("是否分层");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdIsWings");
	eiColumn.setFieldLength(8);	
	eiColumn.setDescName("是否两翼开采");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRemarks");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("备注");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdIsFirst");
	eiColumn.setFieldLength(2);	
	eiColumn.setDescName("是否为首采区");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCSMiningarea() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdParentId - 父节点ID
	 * @return the fdParentId
	 */
	public String getFdParentId() {
		return this.fdParentId;
	}
	
	/**
	 * set the fdParentId - 父节点ID
	 */
	public void setFdParentId(String fdParentId) {
		this.fdParentId = fdParentId;
	}
	
	/**
	 * get the fdNo - 采区编号
	 * @return the fdNo
	 */
	public String getFdNo() {
		return this.fdNo;
	}
	
	/**
	 * set the fdNo - 采区编号
	 */
	public void setFdNo(String fdNo) {
		this.fdNo = fdNo;
	}
	
	/**
	 * get the fdName - 采区名称
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}
	
	/**
	 * set the fdName - 采区名称
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}
	
	/**
	 * get the fdTrendLength - 走向长度
	 * @return the fdTrendLength
	 */
	public Double getFdTrendLength() {
		return this.fdTrendLength;
	}
	
	/**
	 * set the fdTrendLength - 走向长度
	 */
	public void setFdTrendLength(Double fdTrendLength) {
		this.fdTrendLength = fdTrendLength;
	}
	
	/**
	 * get the fdTendencyLength - 倾向长度
	 * @return the fdTendencyLength
	 */
	public Double getFdTendencyLength() {
		return this.fdTendencyLength;
	}
	
	/**
	 * set the fdTendencyLength - 倾向长度
	 */
	public void setFdTendencyLength(Double fdTendencyLength) {
		this.fdTendencyLength = fdTendencyLength;
	}
	
	/**
	 * get the fdDesignReserves - 设计储量
	 * @return the fdDesignReserves
	 */
	public Double getFdDesignReserves() {
		return this.fdDesignReserves;
	}
	
	/**
	 * set the fdDesignReserves - 设计储量
	 */
	public void setFdDesignReserves(Double fdDesignReserves) {
		this.fdDesignReserves = fdDesignReserves;
	}
	
	/**
	 * get the fdRecoverableReserves - 可采储量
	 * @return the fdRecoverableReserves
	 */
	public Double getFdRecoverableReserves() {
		return this.fdRecoverableReserves;
	}
	
	/**
	 * set the fdRecoverableReserves - 可采储量
	 */
	public void setFdRecoverableReserves(Double fdRecoverableReserves) {
		this.fdRecoverableReserves = fdRecoverableReserves;
	}
	
	/**
	 * get the fdManufacturability - 设计生产能力
	 * @return the fdManufacturability
	 */
	public Double getFdManufacturability() {
		return this.fdManufacturability;
	}
	
	/**
	 * set the fdManufacturability - 设计生产能力
	 */
	public void setFdManufacturability(Double fdManufacturability) {
		this.fdManufacturability = fdManufacturability;
	}
	
	/**
	 * get the fdServiceYear - 服务年限
	 * @return the fdServiceYear
	 */
	public Float getFdServiceYear() {
		return this.fdServiceYear;
	}
	
	/**
	 * set the fdServiceYear - 服务年限
	 */
	public void setFdServiceYear(Float fdServiceYear) {
		this.fdServiceYear = fdServiceYear;
	}
	
	/**
	 * get the fdUpperElevation - 上限标高
	 * @return the fdUpperElevation
	 */
	public Integer getFdUpperElevation() {
		return this.fdUpperElevation;
	}
	
	/**
	 * set the fdUpperElevation - 上限标高
	 */
	public void setFdUpperElevation(Integer fdUpperElevation) {
		this.fdUpperElevation = fdUpperElevation;
	}
	
	/**
	 * get the fdLowerElevation - 下限标高
	 * @return the fdLowerElevation
	 */
	public Integer getFdLowerElevation() {
		return this.fdLowerElevation;
	}
	
	/**
	 * set the fdLowerElevation - 下限标高
	 */
	public void setFdLowerElevation(Integer fdLowerElevation) {
		this.fdLowerElevation = fdLowerElevation;
	}
	
	/**
	 * get the fdIsStratified - 是否分层
	 * @return the fdIsStratified
	 */
	public String getFdIsStratified() {
		return this.fdIsStratified;
	}
	
	/**
	 * set the fdIsStratified - 是否分层
	 */
	public void setFdIsStratified(String fdIsStratified) {
		this.fdIsStratified = fdIsStratified;
	}
	
	/**
	 * get the fdIsWings - 是否两翼开采
	 * @return the fdIsWings
	 */
	public String getFdIsWings() {
		return this.fdIsWings;
	}
	
	/**
	 * set the fdIsWings - 是否两翼开采
	 */
	public void setFdIsWings(String fdIsWings) {
		this.fdIsWings = fdIsWings;
	}
	
	/**
	 * get the fdRemarks - 备注
	 * @return the fdRemarks
	 */
	public String getFdRemarks() {
		return this.fdRemarks;
	}
	
	/**
	 * set the fdRemarks - 备注
	 */
	public void setFdRemarks(String fdRemarks) {
		this.fdRemarks = fdRemarks;
	}
	
	/**
	 * get the fdIsFirst - 是否为首采区
	 * @return the fdIsStratified
	 */
	public String getFdIsFirst() {
		return this.fdIsFirst;
	}
	
	/**
	 * set the fdIsFirst - 是否为首采区
	 */
	public void setFdIsFirst(String fdIsFirst) {
		this.fdIsFirst = fdIsFirst;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdParentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdParentId")), fdParentId));
		setFdNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNo")), fdNo));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdTrendLength(NumberUtils.toDouble(StringUtils.toString(map.get("fdTrendLength")), fdTrendLength));
		setFdTendencyLength(NumberUtils.toDouble(StringUtils.toString(map.get("fdTendencyLength")), fdTendencyLength));
		setFdDesignReserves(NumberUtils.toDouble(StringUtils.toString(map.get("fdDesignReserves")), fdDesignReserves));
		setFdRecoverableReserves(NumberUtils.toDouble(StringUtils.toString(map.get("fdRecoverableReserves")), fdRecoverableReserves));
		setFdManufacturability(NumberUtils.toDouble(StringUtils.toString(map.get("fdManufacturability")), fdManufacturability));
		setFdServiceYear(NumberUtils.toFloat(StringUtils.toString(map.get("fdServiceYear")), fdServiceYear));
		setFdUpperElevation(NumberUtils.toInteger(StringUtils.toString(map.get("fdUpperElevation")), fdUpperElevation));
		setFdLowerElevation(NumberUtils.toInteger(StringUtils.toString(map.get("fdLowerElevation")), fdLowerElevation));
		setFdIsStratified(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsStratified")), fdIsStratified));
		setFdIsWings(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsWings")), fdIsWings));
		setFdRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemarks")), fdRemarks));
		setFdIsFirst(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsFirst")), fdIsFirst));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdParentId",StringUtils.toString(fdParentId, eiMetadata.getMeta("fdParentId")));	
			map.put("fdNo",StringUtils.toString(fdNo, eiMetadata.getMeta("fdNo")));	
			map.put("fdName",StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));	
			map.put("fdTrendLength",StringUtils.toString(fdTrendLength, eiMetadata.getMeta("fdTrendLength")));	
			map.put("fdTendencyLength",StringUtils.toString(fdTendencyLength, eiMetadata.getMeta("fdTendencyLength")));	
			map.put("fdDesignReserves",StringUtils.toString(fdDesignReserves, eiMetadata.getMeta("fdDesignReserves")));	
			map.put("fdRecoverableReserves",StringUtils.toString(fdRecoverableReserves, eiMetadata.getMeta("fdRecoverableReserves")));	
			map.put("fdManufacturability",StringUtils.toString(fdManufacturability, eiMetadata.getMeta("fdManufacturability")));	
			map.put("fdServiceYear",StringUtils.toString(fdServiceYear, eiMetadata.getMeta("fdServiceYear")));	
			map.put("fdUpperElevation",StringUtils.toString(fdUpperElevation, eiMetadata.getMeta("fdUpperElevation")));	
			map.put("fdLowerElevation",StringUtils.toString(fdLowerElevation, eiMetadata.getMeta("fdLowerElevation")));	
			map.put("fdIsStratified",StringUtils.toString(fdIsStratified, eiMetadata.getMeta("fdIsStratified")));	
			map.put("fdIsWings",StringUtils.toString(fdIsWings, eiMetadata.getMeta("fdIsWings")));	
			map.put("fdRemarks",StringUtils.toString(fdRemarks, eiMetadata.getMeta("fdRemarks")));	
			map.put("fdIsFirst",StringUtils.toString(fdIsFirst, eiMetadata.getMeta("fdIsFirst")));	
		return map;
	
	}
}